<?php
	
	
	//include site specific

	include_once("cmsSiteConfig.php");//this will now just .. be found.. from the cmsSite/html/config


	include_once(CMS_SITE_CONFIG_DIR . "cmsTinyMCESiteConfig.php"); //Setup for tinyMCE

	
	include_once("cmsCoreConfig.php");
	include_once("cmsSiteFeatures.php");
	
	if (defined("CMS_INCLUDE_ADDITIONAL_SITE_CONFIG")  && CMS_INCLUDE_ADDITIONAL_SITE_CONFIG) {
			include_once("cmsAdditionalSiteConfig.php");
	}



	define("CMS_VERSION_NAME","Originate");
	define("CMS_MAJOR_NUMBER","1");
	define("CMS_MINOR_NUMBER","0");
	define("CMS_BUILD_DATE","20030613");	
	define("CMS_VERSION", CMS_VERSION_NAME. " " . CMS_MAJOR_NUMBER . "." . CMS_MINOR_NUMBER . "." . CMS_BUILD_DATE);


	define("CMS_URL",CMS_HTTP_HOST . CMS_HOME);
	
	if(!defined("CMS_FORMAT"))
		define("CMS_FORMAT","content");
		
	if(!defined("CMS_FORM_DESC_FORMAT"))		
		define("CMS_FORM_DESC_FORMAT","formdescriptor");
	
	define("CMS_ELEMENT_DESC_FORMAT","formelement");
	define("CMS_ELEMENT_OPTION_FORMAT","elementattribs");
	define("CMS_AUTH_FORMAT","user");
	define("CMS_CATEGORYTYPE_FORMAT","categorytype");
	define("CMS_BINARYDATA", "binarydata");
	define("CMS_MANYDATA", "manytomanydata");
	define("CMS_IMAGE_DESCRIPTOR", "imagedescriptor");
	define("CMS_MOVIE_DESCRIPTOR", "moviedescriptor");
	define("CMS_MULTIPLEKEYVALUE","multiplekeyvaluepairs");

	//form stuff .. the database must match these..
	//user types
	define("CMS_USERTYPE_SU","0");
	define("CMS_USERTYPE_EDITORS","1");

	//edit modes
	define("CMS_EDIT_MODE_USER","0");// user add/edit only
	define("CMS_EDIT_MODE_EDIT","1");//user add/ anybody edit
	define("CMS_EDIT_MODE_FULL","2");//add add/edit

	if (!defined("CMS_QUERY_DEBUG")){
		define("CMS_QUERY_DEBUG", false);
	}
	
	//we create a db here, so that we only need to do it once
	$db = new CMSDatabaseConnection(CMS_DSN);
